﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp56.Models
{
    public class Product :INotifyPropertyChanged
    {
        private decimal unitCost;
        public decimal UnitCost 
        {
            get 
            { 
                return unitCost; 
            }
            set 
            {
                unitCost = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(UnitCost)));
            } 
        }

        public event PropertyChangedEventHandler? PropertyChanged;
    }
}
